package org.jeecg.modules.zcgl.vo.statistical;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @author 尹涛 * @version V1.0.0
 * @projectName bingjiang-parent
 * @title AssetScrapVo
 * @package org.jeecg.modules.zcgl.vo.statistical
 * @description
 * @date 2021/7/6
 */
@Data
public class AssetScrapVo {

    @ApiModelProperty(value = "id")
    private String id;
    /**固定资产*/
    @Excel(name = "固定资产", width = 15,dictTable = "zcgl_asset_fixed",dicCode = "id",dicText ="CONCAT_WS( ' ', `specifications`, unit )")
    @ApiModelProperty(value = "固定资产")
    @Dict(dictTable = "zcgl_asset_fixed",dicCode = "id",dicText ="CONCAT_WS( ' ', `specifications`, unit )")
    private String assetFixedId;
    /**单位ID*/
    @Excel(name = "单位ID", width = 15)
    @ApiModelProperty(value = "单位ID")
    @Dict(dictTable = "zcgl_asset_fixed_category",dicCode = "id",dicText = "name")
    private String  assetFixedCategoryId;
    /**规格型号*/
    @Excel(name = "规格型号", width = 15)
    @ApiModelProperty(value = "规格型号")
    private String specifications;
    /**单位*/
    @Excel(name = "单位", width = 15)
    @ApiModelProperty(value = "单位")
    private String unit;
    /**数量*/
    @Excel(name = "数量", width = 15)
    @ApiModelProperty(value = "数量")
    private BigDecimal amount;
    /**单价*/
    @Excel(name = "单价", width = 15)
    @ApiModelProperty(value = "单价")
    private java.math.BigDecimal price;
    /**合价*/
    @Excel(name = "合价", width = 15)
    @ApiModelProperty(value = "合价")
    private java.math.BigDecimal total;
    /**采购日期*/
    @Excel(name = "采购日期", width = 20, format = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "采购日期")
    private Date purchaseDate;

    /**原因*/
    @Excel(name = "原因", width = 15)
    @ApiModelProperty(value = "原因")
    private String reason;


    //查询参数
    private String selections;
}
